package com.matea.user.service.impl;

import com.matea.user.dataobject.UserInfo;
import com.matea.user.repository.UserinfoRepository;
import com.matea.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Matea on 2019/2/20.
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserinfoRepository userinfoRepository;

    @Override
    public UserInfo findByOpenid(String openid) {
        return userinfoRepository.findByOpenid(openid);
    }
}
